package com.wenjie.original.entity.vo.SysAdmin;

import com.wenjie.original.entity.SysAdmin;
import com.wenjie.original.entity.common.vo.IAddVo;
import com.wenjie.original.entity.common.vo.IUpVo;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

public class SysAdminUpOrAddVo {

    @Data
    public static class UpVo extends baseVo implements IUpVo<SysAdmin> {
        @NotNull
        private Long sysAdminId;

        private List<Long> sysRoleIds;

    }

    @Data
    public static class AddVo extends baseVo implements IAddVo<SysAdmin> {

        @Null
        private Long sysAdminId;

        @NotBlank
        private String tel;

        @NotBlank
        private String password;

        private List<Long> sysRoleIds;
    }

    @Data
    private static class baseVo extends SysAdmin {
        public void setCreateTime(Long createTime) {
        }

        public void setUpdateTime(Long updateTime) {
        }

        public void setVersion(Long version) {
        }

        public void setDelFlag(Long delFlag) {
        }
    }


}
